<?php if ($this->title!=null){?>
	</div>
	</div>
	<img id="bottom" src="<?php echo $this->imageUrl; ?>/bottom.png" alt="">
<?php }?>
	<?php if ($this->mensagem_alerta!=null){?>
		<div class="ui-widget">
			<div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;"> 
				<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
				<strong>Atenção!</strong> <?php echo $this->mensagem_alerta;?></p>
				</div>
		</div>
		<br/>
	<?php }?>
	
	<?php if ($this->mensagem_erro!=null){?>
		<div class="ui-widget" id="message">
			<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> 
				<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
				<strong>Erro:</strong> <?php echo $this->mensagem_erro;?></p>
			</div>
		</div>
	<?php }?>
	<div id="carregando"></div>

	<?php if($this->controlador == 'validarparticipante'){?>
	<div id="dialog-detalhe" title="Detalhes participante">
	<form>
		<div align="left">
		<ul style="display: inline-table; list-style: none;">
			<li style="width: 50%; display: inline-table;" ><label class="description">Empresa</label>
				<div>
					<input type="text" id='fantasia' name='fantasia' class="element text large">
					<label>Nome fantasia</label> 
				</div>
				<div>
					<input type="text" name="razaoSocial" id="razaoSocial" class="element text large">
					<label>Razão Social</label>
				</div>
				<div class="left">
					<input type="text" name="site" id="site" class="element text large">
					<label>HomePage</label>
				</div>	
				<div class="right">
					<input type="text" name="cidade" id="cidade" disabled="disabled" class="element text large">
					<label>Cidade</label>
				</div>					
				<div class="left">
					<input type="text" name="estado" id="estado" disabled="disabled" class="element text large">
					<label>Estado</label>
				</div>
				<div class="right">
					<input type="text" name="pais" id="pais" disabled="disabled" class="element text large">
					<label>País</label>
				</div>
				<div>
					<input type="text" name="endereco" id="endereco" class="element text large">
					<label>Endereço</label>
				</div>																																		
			</li>	
			
			<li style="width: 50%; display: inline-table;"><label class="description">Participante</label>
				<div>
					<input type="text" id="nome" name="nome" class="element text large">
					<label>Nome</label>
				</div>
				<div>
					<input type="text" id="email" name="email" class="element text large">
					<label>E-mail</label>
				</div>	
				<div class="left">
					<input type="text" id="celular" name="celular" class="element text large">
					<label>Celular</label>
				</div>
				<div class="right">
					<input type="text" id="foneFisica" name="foneFisica" class="element text large">
					<label>Telefone</label>
				</div>							
			</li>
		</div>
		</form>
	</div>
	<?php }?>
	<div id='dialog-sair' title='Fazer logoff'>
		<p>Deseja realmente sair?</p>
	</div>	

<div class="footer">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="color: white;">
	<tr>
		<td width="5%"></td>
		<td align="right" width="95%">
			<?php if ($this->controlador!='index') { ?>			
				<a href="<?php echo $this->baseUrl; ?>" class="icon-home">Clique aqui para retornar a página principal</a>
				<?php if ($this->controlador!='fisica') { ?>
					<?php if ($this->executor=='add' || $this->executor=='edit') {?>
						<a href="<?php echo $this->baseUrl.'/'.$this->controlador.'/index';?>" class="icon-consulta">Clique aqui para consultar</a>
					<?php }?>
					<?php if ($this->executor=='edit' || $this->executor=='index') {?>
						<a href="<?php echo $this->baseUrl.'/'.$this->controlador.'/add';?>" class="icon-add">Clique aqui para incluir novo registro</a>
					<?php }?>
				<?php }?>
			<?php } ?>
			<?php if (!is_null($this->sair)){?>
				<a id="logout" href="<?php echo $this->sair;?>" class="icon-logout">Clique aqui para sair do sistema</a>
			<?php }?>
		</td>
	</tr>

	<tr class="ui-widget-header">
		<td align="left" width="5%"><b>7iN</b></td>
		<td align="center" width="95%"><b>© Todos os diretos reservados.</b></td>
	</tr>
</table>
</div>
</body>
</html>